﻿
using Conmmon;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RabbitMQLearning
{
    public class TestConfigEntity
    {
        public static  RabbitMQEntity _rabbitMQEntity;


        public TestConfigEntity(IOptions<RabbitMQEntity> rabbitMQEntity) { _rabbitMQEntity = rabbitMQEntity.Value; }

        public string GetConfig()
        {
            return _rabbitMQEntity.UserName;
        }
    }
}
